import { network } from '@/utils';
import { TableListParams } from './data';

import { basic } from '../../../../../config/Apis';

export async function queryCampusArea(params: TableListParams) {
  return network.get(basic.garden_area_list, {
    params,
  });
}

export async function performSaveArea(params: TableListParams) {
  return network.post(basic.garden_area, {
    data: params,
  });
}

export async function performUpdateArea(params: TableListParams) {
  return network.put(basic.garden_area, {
    data: params,
  });
}

export async function performDeleteArea(params: TableListParams) {
  return network.deleter(basic.garden_area, {
    params,
  });
}
